#include "client.h"

Client::Client()
{
    factory = new ConcreteFactoryB();
}

Client::~Client()
{
    delete factory;
}

void Client::run()
{
    AbstractProductA *productA =  factory->getProductA();
    productA->productName();
    productA->productMethod();
    AbstractProductB *productB =  factory->getProductB();
    productB->productName();
    productB->productMethod();
    AbstractProductC *productC =  factory->getProductC();
    productC->productName();
    productC->productMethod();
}
